package ocean.chinacraft.common.config;

import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.registries.ForgeRegistries;
import ocean.chinacraft.common.constants.Constants;

/**
 * 定义组
 *
 * @author zhang
 * @since 2021/11/5
 */
public class GroupDefine {

    /**
     * 杂项
     */
    public static final ItemGroup CHINACRAFT_MISC = new GroupConfig("chinacraft_misc", () ->
            new ItemStack(ForgeRegistries.ITEMS.getValue(new ResourceLocation(Constants.MOD_ID,
                    "copper_ore")))
    );

    /**
     * 农业
     */
    public static final ItemGroup CHINACRAFT_AGRICULTURE = new GroupConfig("chinacraft_agriculture", () ->
            new ItemStack(ForgeRegistries.ITEMS.getValue(new ResourceLocation(Constants.MOD_ID,
                    "mulberry_leaf")))
    );

    /**
     * 工具
     */
    public static final ItemGroup CHINACRAFT_TOOL = new GroupConfig("chinacraft_tool", () ->
            new ItemStack(ForgeRegistries.ITEMS.getValue(new ResourceLocation(Constants.MOD_ID,
                    "stone_hammer")))
    );

    /**
     * 防具
     */
    public static final ItemGroup CHINACRAFT_ARMOR = new GroupConfig("chinacraft_armor", () ->
            new ItemStack(ForgeRegistries.ITEMS.getValue(new ResourceLocation(Constants.MOD_ID,
                    "bronze_head")))
    );

    /**
     * 功能方块
     */
    public static final ItemGroup CHINACRAFT_FUNCTION = new GroupConfig("chinacraft_function_block", () ->
            new ItemStack(ForgeRegistries.ITEMS.getValue(new ResourceLocation(Constants.MOD_ID,
                    "furnace_platform_block")))
    );

    /**
     * 装饰
     */
    public static final ItemGroup CHINACRAFT_DECORATE = new GroupConfig("chinacraft_decorate", () ->
            new ItemStack(ForgeRegistries.ITEMS.getValue(new ResourceLocation(Constants.MOD_ID,
                    "smooth_marble")))
    );

    /**
     * 丝绸
     */
    public static final ItemGroup CHINACRAFT_SILK = new GroupConfig("chinacraft_silk", () ->
            new ItemStack(ForgeRegistries.ITEMS.getValue(new ResourceLocation(Constants.MOD_ID, "silk")))
    );

    /**
     * 食物
     */
    public static final ItemGroup CHINACRAFT_FOOD = new GroupConfig("chinacraft_food", () ->
            new ItemStack(ForgeRegistries.ITEMS.getValue(new ResourceLocation(Constants.MOD_ID, "moon_cake"
            )))
    );

    /**
     * 符咒
     */
    public static final ItemGroup CHINACRAFT_SPELL = new GroupConfig("chinacraft_spell", () ->
            new ItemStack(ForgeRegistries.ITEMS.getValue(new ResourceLocation(Constants.MOD_ID,
                    "fire_spell")))
    );
}
